function [ label ] = make_label(dataset, weak_learners, mix_weak_learners, type_classifier, perceptron_batch, block_feature_reuse, split_cont_var, type_boost)

%make figure label
label = [dataset '_' int2str(weak_learners) 'x_'];

if mix_weak_learners == true
    label = strcat(label,'mixture');
else
    label = strcat(label,type_classifier);
end

if strcmp(type_classifier,'perceptron')
    if perceptron_batch == true
        label = strcat(label,'_offline');
    else
        label = strcat(label,'_online');
    end
elseif strcmp(type_classifier,'tree')
    if block_feature_reuse == true
        label = strcat(label,'_blockreuse');
    end
    label = strcat(label,['_splittree_' int2str(split_cont_var)]);
end

label = strcat(label,'_');
label = strcat(label,type_boost);

set(0,'DefaultAxesFontSize',15);
set(0,'DefaultAxesLineWidth',1);
set(0,'DefaultLineLineWidth',2);

end

